﻿/****************************** Module Header ******************************\
 * Module Name:  DBTableAttribute.cs
 * Module Version:  1.0.0 (2012-3-20)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This class is used to the data access layer. It supplies public method to 
 * add a record to database or get a list from the datatable, the parameter
 * could be an data entity or a string sql statement.
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/

using System;
using System.Collections.Generic;

namespace UCL.Data
{
    /// <summary>
    /// 数据表属性类
    /// </summary>
    [System.AttributeUsage(AttributeTargets.Class)]
    public class DBTableAttribute : System.Attribute
    {
        /// <summary>
        /// 对应的数据库表
        /// </summary>
        public string Table { get; set; }

        /// <summary>
        /// 是否不可用
        /// </summary>
        public bool Disabled { get; set; }

        /// <summary>
        /// 数据库注释
        /// </summary>
        public string Common { get; set; }

        /// <summary>
        /// 源数据表名称(用于不同数据表数据对拷)
        /// </summary>
        public string Source { get; set; }

        /// <summary>
        /// 数据库版本
        /// <para>如：1.0.0.0或2014.4.15.1</para>
        /// </summary>
        /// <remarks>2014-4-15</remarks>
        public string Version { get; set; }
    }
}
